package com.ruyuan.rapid.core.context;

import org.asynchttpclient.Request;
import org.asynchttpclient.cookie.Cookie;

/**
 * 请求可修改的参数操作接口
 */
public interface RapidRequestMutable {


    /**
     * 设置
     * @param host
     */
    void setModifyHost(String host);


    String getModifyHost();

    void setModifyPath(String path);

    String getModifyPath();

    void addHeader(CharSequence name, String value);

    void setHeader(CharSequence name, String value);

    void addQueryParam(String name, String value);

    void addOrReplaceCookie(Cookie cookie);

    void addFormParam(String name, String value);

    void setRequestTimeout(int requestTimeout);

    Request build();

    String getFinalUrl();

}
